package com.str.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.util.Date;
import java.util.List;

/**
 * @Author: ZhangWu, Anything is possible!
 * @CreateTime: 2023/04/16 15:32
 * @Description: 导出基因数据响应vo
 */
@Data
public class ExportKitInfoVO {

    /**
     * 试剂盒名称
     */
    @Excel(name = "试剂盒",needMerge=true,orderNum ="1",width = 10)
    private String kitName;
    /**
     * 组分数：0，未知，1：1人份，2：2人份，3：3人份
     */
    @Excel(name = "组分数",needMerge=true,orderNum = "2",width = 10)
    private Integer comNumber;
    /**
     * 采样类型，1：血斑、2：唾液斑、3：汗斑、4：精斑、5：毛发、6：烟蒂、7：骨骼、8：牙齿，9：脱落上皮细胞，10：其它
     */
    @Excel(name = "采用类型",needMerge=true,orderNum ="3",width = 10,replace ={"血斑_1","唾液斑_2","汗斑_3","精斑_4","毛发_5","烟蒂_6","骨骼_7","牙齿_8","脱落上皮细胞_9","其它_10"})
    @Min(value = 1,message = "采用类型输入错误" )
    @Max(value = 10,message = "采用类型输入错误" )
    private int samplingType;
    /**
     * 来源（存放链接）
     */
    @Excel(name = "来源",fixedIndex = 3,needMerge=true,orderNum ="4",width = 10)
    private String source;
    /**
     * 更新时间
     */
    private Date updateTime;
    /**
     * 基因座信息集合
     */
    @ExcelCollection(name = "基因座信息",orderNum = "5")
    private List<ExportLocusInfoVO> list;
}
